package org.itboys.baseobject.service;

import org.itboys.baseobject.entity.Advertising;
import org.itboys.baseobject.entity.AdvertisingSC;
import org.itboys.mongodb.core.MongoDataSource;
import org.itboys.mongodb.service.BaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class AdvertisingSCService extends BaseService<AdvertisingSC, Long> {

	private static final long serialVersionUID = -2585038438743198700L;
	
	@Resource(name="baseMongoDS")
	private MongoDataSource phoneDataSource;

	@Override
	protected MongoDataSource getMongoDataSource() {
		return phoneDataSource;
	}

	@Override
	protected Class<AdvertisingSC> getEntityClass() {
		return AdvertisingSC.class;
	}
	
}
